<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="seaslog.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="seaslog.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.seaslog.html">SeasLog</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="seaslog.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <dl>
   
    <dt id="constant.seaslog-version">
     <strong><code>SEASLOG_VERSION</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-author">
     <strong><code>SEASLOG_AUTHOR</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-all">
     <strong><code>SEASLOG_ALL</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;ALL&quot;
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-debug">
     <strong><code>SEASLOG_DEBUG</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;DEBUG&quot; - 详细的调试信息。细粒度的信息事件。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-info">
     <strong><code>SEASLOG_INFO</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;INFO&quot; - 重要事件、强调应用程序的运行过程。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-notice">
     <strong><code>SEASLOG_NOTICE</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;NOTICE&quot; - 一般重要性事件、执行过程中较INFO级别更为重要的信息。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-warning">
     <strong><code>SEASLOG_WARNING</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;WARNING&quot; - 出现了非错误性的异常信息、潜在异常信息、需要关注并且需要修复。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-error">
     <strong><code>SEASLOG_ERROR</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;ERROR&quot; - 运行时出现的错误，不需要立刻采取行动，但必须记录下来以备检测。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-critical">
     <strong><code>SEASLOG_CRITICAL</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;CRITICAL&quot; - 紧急情况、需要立刻进行修复、程序组件已经不可用。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-alert">
     <strong><code>SEASLOG_ALERT</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;ALERT&quot; - 必级立即采取行动的紧急事件、需要立即通知相关人员紧急修复。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-emergency">
     <strong><code>SEASLOG_EMERGENCY</code></strong>
     (<span class="type">string</span>)
    </dt>

    <dd>

     <span class="simpara">
     &quot;EMERGENCY&quot; - 系统不可用。
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-detail-order-asc">
     <strong><code>SEASLOG_DETAIL_ORDER_ASC</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     1
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-detail-order-desc">
     <strong><code>SEASLOG_DETAIL_ORDER_DESC</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     2
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-appender-file">
     <strong><code>SEASLOG_APPENDER_FILE</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     1
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-appender-tcp">
     <strong><code>SEASLOG_APPENDER_TCP</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     2
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-appender-udp">
     <strong><code>SEASLOG_APPENDER_UDP</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
     3
     </span>
    </dd>

   
  
    <dt id="constant.seaslog-close-logger-stream-mod-all">
     <strong><code>SEASLOG_CLOSE_LOGGER_STREAM_MOD_ALL</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      1
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-close-logger-stream-mod-assign">
     <strong><code>SEASLOG_CLOSE_LOGGER_STREAM_MOD_ASSIGN</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      2
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-request-variable-domain-port">
     <strong><code>SEASLOG_REQUEST_VARIABLE_DOMAIN_PORT</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      1
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-request-variable-request-uri">
     <strong><code>SEASLOG_REQUEST_VARIABLE_REQUEST_URI</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      2
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-request-variable-request-method">
     <strong><code>SEASLOG_REQUEST_VARIABLE_REQUEST_METHOD</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      3
     </span>
    </dd>

   
   
    <dt id="constant.seaslog-request-variable-client-ip">
     <strong><code>SEASLOG_REQUEST_VARIABLE_CLIENT_IP</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      4
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>